// 长方体
export const rectangle = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', prop: 'type' },
        { type: 'text', label: '绘标名称', prop: 'name' },
        { type: 'unit', label: '长度', value: '', prop: 'length', unit: 'm' },
        { type: 'unit', label: '宽度', value: '', prop: 'width', unit: 'm' },
        { type: 'unit', label: '高度', value: '', prop: 'height', unit: 'm' },
        { type: 'unit', label: '旋转角度', value: '', prop: 'rotationDegree', unit: '°' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data2: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '颜色', prop: 'outlineColor' },
        { type: 'slider', label: '透明度', prop: 'outlineOpacity', min: 0, max: 1, step: 0.1 }
    ],
    data3: [
        { type: 'select', label: '填充类型', value: '', prop: 'material' },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '体积', value: '', prop: 'volume', unit: 'm³', noEdit: true },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '长方体数量', value: '', prop: 'type', unit: '个' },
        { type: 'unit', label: '总体积', value: '', prop: 'type', unit: 'm³' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ]
}

// 圆柱
export const column = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '圆柱', prop: 'type' },
        { type: 'text', label: '绘标名称', value: '药水池A', prop: 'name' },
        { type: 'unit', label: '短半径', value: '', prop: 'semiMinorAxis', unit: 'm' },
        { type: 'unit', label: '长半径', value: '', prop: 'semiMajorAxis', unit: 'm' },
        { type: 'unit', label: '高度', value: '', prop: 'height', unit: 'm' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data2: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '颜色', prop: 'outlineColor' },
        { type: 'slider', label: '透明度', prop: 'outlineOpacity', min: 0, max: 1, step: 0.1 }
    ],
    data3: [
        { type: 'select', label: '填充类型', value: '', prop: 'material' },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '体积', value: '', prop: 'volume', unit: 'm³', noEdit: true },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '圆柱数量', value: '', prop: 'type', unit: '个' },
        { type: 'unit', label: '总体积', value: '', prop: 'type', unit: 'm³' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ]
}

// 矩形(多边形)
export const polygon = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '矩形', prop: 'type' },
        { type: 'input', label: '绘标名称', value: '管理房', prop: 'name' },
        { type: 'unit', label: '长度', value: '', prop: 'length', unit: 'm' },
        { type: 'unit', label: '宽度', value: '', prop: 'width', unit: 'm' },
        { type: 'unit', label: '旋转角度', value: '', prop: 'rotationDegree', unit: '°' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data2: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '颜色', prop: 'outlineColor' },
        { type: 'slider', label: '透明度', prop: 'outlineOpacity', min: 0, max: 1, step: 0.1 }
    ],
    data3: [
        { type: 'select', label: '填充类型', value: '', prop: 'material' },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '投影周长', value: '', prop: 'distance', unit: 'm', noEdit: true },
        { type: 'unit', label: '投影面积', value: '', prop: 'area', unit: 'm²', unitunit: 'areaUnit', unitEdit: true, noEdit: true },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '矩形数量', value: '', prop: 'type', unit: '个' },
        { type: 'unit', label: '投影总面积', value: '', prop: 'type', unit: 'm²' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ]
}

// 圆
export const round = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '圆', prop: 'type' },
        { type: 'input', label: '绘标名称', value: '药水池A', prop: 'name' },
        { type: 'unit', label: '半径', value: '', prop: 'radius', unit: 'm' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data2: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '颜色', prop: 'outlineColor' },
        { type: 'slider', label: '透明度', prop: 'outlineOpacity', min: 0, max: 1, step: 0.1 }
    ],
    data3: [
        { type: 'select', label: '填充类型', value: '', prop: 'material' },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '投影周长', value: '', prop: 'distance', unit: 'm', noEdit: true },
        { type: 'unit', label: '投影面积', value: '', prop: 'area', unit: 'm²', unitunit: 'areaUnit', unitEdit: true, noEdit: true },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '圆的数量', value: '', prop: 'type', unit: '个' },
        { type: 'unit', label: '投影总面积', value: '', prop: 'type', unit: 'm²' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ]
}

// 面
export const cover = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '面', prop: 'type' },
        { type: 'input', label: '绘标名称', value: '', prop: 'name' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data12: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '面', prop: 'type' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' },
        { type: 'radio', label: '是否边框', value: '', prop: 'outline' },
        { type: 'radio', label: '是否填充', value: '', prop: 'fill' }
    ],
    data2: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '颜色', prop: 'outlineColor' },
        { type: 'slider', label: '透明度', prop: 'outlineOpacity', min: 0, max: 1, step: 0.1 }
    ],
    data3: [
        { type: 'select', label: '填充类型', value: '', prop: 'material' },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '投影周长', value: '', prop: 'distance', unit: 'm', noEdit: true },
        { type: 'unit', label: '投影面积', value: '', prop: 'area', unit: 'm²', unitunit: 'areaUnit', unitEdit: true, noEdit: true },
        { type: 'unit', label: '倾斜比例', value: '', prop: 'tilt', unit: '%' },
        { type: 'unit', label: '倾斜面积', value: '', prop: 'tiltArea', unit: '亩', unitunit: 'tiltAreaUnit', unitEdit: true, noEdit: true },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    data42: [
        { type: 'unit', label: '倾斜比例', value: '', prop: 'tilt', unit: '%' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '面的数量', value: '', prop: 'polygonNumber', unit: '个' },
        { type: 'unit', label: '投影总面积', value: '', prop: 'allArea', unit: 'm²' },
        { type: 'unit', label: '倾斜比例', value: '', prop: 'allTilt', unit: '%' },
        { type: 'unit', label: '施工总面积', value: '', prop: 'allConstructionArea', unit: 'm²' }
    ]
}

// 线和曲线
export const line = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '线', prop: 'type' },
        { type: 'input', label: '绘标名称', value: '', prop: 'name' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' }
    ],
    data12: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '线', prop: 'type' },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' }
    ],
    data2: [
        { type: 'slider', label: '线宽', prop: 'outlineWidth', min: 1, max: 20 },
        { type: 'color', label: '线条颜色', prop: 'outlineColor' }
    ],
    data3: [
        { type: 'select', label: '线型', value: '', prop: 'materialType' },
        { type: 'slider', label: '填充宽度', prop: 'width', min: 1, max: 20 },
        { type: 'color', label: '填充颜色', prop: 'color' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 }
    ],
    data4: [
        { type: 'unit', label: '投影长度', value: '', prop: 'distance', unit: 'm', noEdit: true },
        { type: 'unit', label: '倾斜比例', value: '', prop: 'tilt', unit: '%' },
        { type: 'unit', label: '施工长度', value: '', prop: 'constructionLength', unit: 'm', noEdit: true },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ],
    data5: [
        // { type: 'unit', label: '倾斜比例', value: '', prop: 'tilt', unit: '%' },
        { type: 'radio', label: '是否显示', value: '', prop: 'distanceShow' }
    ],
    statistical: [
        { type: 'unit', label: '线的数量', value: '', prop: 'polylineNumber', unit: '条', noEdit: true },
        { type: 'unit', label: '投影总长度', value: '', prop: 'allDistance', unit: 'm', noEdit: true },
        { type: 'unit', label: '倾斜比例', value: '', prop: 'allTilt', unit: '%' },
        { type: 'unit', label: '施工总长度', value: '', prop: 'allConstructionLength', unit: 'm', noEdit: true }
    ]
}

// 点及文字
export const dot = {
    data1: [
        { type: 'cascader', label: '所在图层', prop: 'layer' },
        { type: 'select', label: '绘标类型', value: '', prop: 'type' },
        { type: 'slot', label: '绘标样式', prop: 'image' },
        { type: 'input', label: '绘标规格', value: '', prop: 'specification' }, //specification
        { type: 'unit', label: '旋转角度', value: '', prop: 'rotationDegree', unit: '°' },
        { type: 'input', label: '大小比例', prop: 'scale', textType: 'number' },
        { type: 'slider', label: '透明度', prop: 'opacity', min: 0, max: 1, step: 0.1 },
        { type: 'radio', label: '是否贴地', value: '', prop: 'clampToGround' }
    ],
    data2: [
        { type: 'slot', label: '绘标名称', value: '', prop: 'name' },
        { type: 'select', label: '字体', value: '', prop: 'font_family' },
        { type: 'slider', label: '字体大小', prop: 'font_size', min: 10, max: 40 },
        { type: 'color', label: '颜色', prop: 'color' },
        { type: 'radio', label: '是否显示', prop: 'distanceShow' }
    ],
    statistical: [{ type: 'text', label: '绘标名称1', value: '', prop: 'type' }]
}

export const optionData = {
    type: [
        // { label: '点及文字', value: 'billboard' },
        { label: '曲线', value: 'curve' },
        { label: '线', value: 'polyline' },
        { label: '面', value: 'polygon' }
        // { label: '圆', value: 'circle' },
        // { label: '矩形', value: 'rectangle' },
        // { label: '圆柱', value: 'ellipse' },
        // { label: '长方体', value: 'box' }
    ],
    materialType: [
        { label: '实线', value: 'Color' },
        { label: '虚线', value: 'PolylineDash' },
        { label: '点划线', value: '3' },
        { label: '双点划线', value: '4' }
    ],
    material: [
        { label: '纯色', value: 'Color' },
        { label: '网格', value: '2' },
        { label: '条纹', value: '3' },
        { label: '棋盘', value: '4' },
        { label: '图片', value: '5' }
    ],
    font_family: [
        { label: '微软雅黑', value: '微软雅黑' },
        { label: '宋体', value: '宋体' },
        { label: '楷体', value: '楷体' },
        { label: '隶书', value: '隶书' },
        { label: '黑体', value: '黑体' }
    ]
}

export const cascader = {
    layer: [
        {
            label: '我的绘标',
            id: 1,
            fileType: 'folder',
            children: []
        },
        {
            label: '园区布局',
            id: 2,
            fileType: 'folder',
            children: [
                {
                    label: '管理房',
                    pid: 2,
                    id: 21,
                    fileType: 'folder',
                    show: true
                },
                {
                    label: '水源管理',
                    pid: 2,
                    id: 22,
                    fileType: 'folder',
                    show: true
                },
                {
                    label: '视频监控',
                    pid: 2,
                    id: 23,
                    fileType: 'folder',
                    show: true
                },
                {
                    label: '气象站',
                    pid: 2,
                    id: 24,
                    fileType: 'folder',
                    show: true
                }
            ]
        },
        {
            label: '水肥管理',
            id: 3,
            fileType: 'folder',
            children: [
                {
                    label: '高压系统',
                    pid: 3,
                    id: 31,
                    fileType: 'folder',
                    show: true,
                    children: [
                        {
                            label: '一级主管',
                            pid: 31,
                            id: 311,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '二级支管',
                            pid: 31,
                            id: 312,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '三级分管',
                            pid: 31,
                            id: 313,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '主管闸阀',
                            pid: 31,
                            id: 314,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '支管闸阀',
                            pid: 31,
                            id: 315,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分管闸阀',
                            pid: 31,
                            id: 316,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '出水桩',
                            pid: 31,
                            id: 317,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '压力监测',
                            pid: 31,
                            id: 318,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '冲洗点',
                            pid: 31,
                            id: 319,
                            fileType: 'folder',
                            show: true
                        }
                    ]
                },
                {
                    label: '滴灌系统',
                    pid: 3,
                    id: 32,
                    fileType: 'folder',
                    show: true,
                    children: [
                        {
                            label: '一级主管',
                            pid: 32,
                            id: 321,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '二级支管',
                            pid: 32,
                            id: 322,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '三级分管',
                            pid: 32,
                            id: 323,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '四级毛管',
                            pid: 32,
                            id: 324,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '主管闸阀',
                            pid: 32,
                            id: 325,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '支管闸阀',
                            pid: 32,
                            id: 326,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分管闸阀',
                            pid: 32,
                            id: 327,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区电磁阀',
                            pid: 32,
                            id: 328,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区监测',
                            pid: 32,
                            id: 329,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '滴灌分区',
                            pid: 32,
                            id: 3210,
                            fileType: 'folder',
                            show: true
                        }
                    ]
                },
                {
                    label: '喷灌系统',
                    pid: 3,
                    id: 33,
                    fileType: 'folder',
                    show: true,
                    children: [
                        {
                            label: '一级主管',
                            pid: 33,
                            id: 331,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '二级支管',
                            pid: 33,
                            id: 332,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '三级分管',
                            pid: 33,
                            id: 333,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '四级毛管',
                            pid: 33,
                            id: 334,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '主管闸阀',
                            pid: 33,
                            id: 335,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '支管闸阀',
                            pid: 33,
                            id: 336,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分管闸阀',
                            pid: 33,
                            id: 337,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '喷灌点',
                            pid: 33,
                            id: 338,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区电磁阀',
                            pid: 33,
                            id: 339,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区监测',
                            pid: 33,
                            id: 3310,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '喷灌分区',
                            pid: 33,
                            id: 3311,
                            fileType: 'folder',
                            show: true
                        }
                    ]
                },
                {
                    label: '弥雾系统',
                    pid: 3,
                    id: 34,
                    fileType: 'folder',
                    show: true,
                    children: [
                        {
                            label: '一级主管',
                            pid: 34,
                            id: 341,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '二级支管',
                            pid: 34,
                            id: 342,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '三级分管',
                            pid: 34,
                            id: 343,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '四级毛管',
                            pid: 34,
                            id: 344,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '主管闸阀',
                            pid: 34,
                            id: 345,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '支管闸阀',
                            pid: 34,
                            id: 346,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分管闸阀',
                            pid: 34,
                            id: 347,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区电磁阀',
                            pid: 34,
                            id: 348,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '分区监测',
                            pid: 34,
                            id: 349,
                            fileType: 'folder',
                            show: true
                        },
                        {
                            label: '弥雾分区',
                            pid: 34,
                            id: 3410,
                            fileType: 'folder',
                            show: true
                        }
                    ]
                }
            ]
        },
        {
            label: '种植资源',
            id: 4,
            fileType: 'folder',
            children: [
                {
                    label: '苹果',
                    pid: 4,
                    id: 41,
                    fileType: 'folder',
                    show: true
                },
                {
                    label: '香蕉',
                    pid: 4,
                    id: 42,
                    fileType: 'folder',
                    show: true
                },
                {
                    label: '柑橘',
                    pid: 4,
                    id: 43,
                    fileType: 'folder',
                    show: true
                }
            ]
        },
        {
            label: '电子围栏',
            id: 5,
            fileType: 'folder',
            children: []
        },
        {
            label: '三维模型',
            id: 6,
            fileType: 'folder',
            children: [
                {
                    label: 'google地图',
                    pid: 6,
                    id: 61,
                    show: true
                },
                {
                    label: '分段tif',
                    pid: 6,
                    id: 62,
                    show: true
                }
            ]
        },
        {
            label: '辅助图层',
            id: 7,
            fileType: 'folder',
            children: [
                {
                    label: '行政区划界线',
                    pid: 7,
                    id: 71,
                    show: true,
                    fileType: 'file'
                },
                {
                    label: '天地图注记',
                    pid: 7,
                    id: 72,
                    show: true,
                    fileType: 'file'
                }
            ]
        }
    ]
}
